package cn.shengchao.wecom.wxcp.infrastructure.dao.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

/**
 * @program: examstarapi
 * @description: 客户外联关系
 * @author: Xiong weiqiang
 * @create: 2025-04-29 15:07
 */

@Data
@TableName(value = "qywx_external_invite")
public class CpExternalInvite {
    /**
     * 自增id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 企微用户id
     */
    @TableField(value = "user_id")
    private String userId;

    /**
     * 外部联系人id
     */
    @TableField(value = "external_user_id")
    private String externalUserId;

    /**
     * 添加时间
     */
    @TableField(value = "add_time")
    private Date addTime;

    /**
     * 删除时间
     */
    @TableField(value = "delete_time")
    private Date deleteTime;

    /**
     * 添加此客户时的联系我的state参数
     */
    @TableField(value = "`state`")
    private String state;

    /**
     * 是否删除关系0未删除 1删除
     */
    @TableField(value = "as_delete")
    private Integer asDelete;
}